/**
 * 
 */
package org.cuatrovientos.searchmap;
import java.util.Random;
/**
 * @author alouis_fernandez
 *
 */
public class SearchMap {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		String map[][] = new String[10][10];
		Random random = new Random();
		
		int x = random.nextInt(10);
		int y = random.nextInt(10);
		
		System.out.print("    ");
		for (int i=0;i<map.length;i++){
			System.out.print(i + "  ");
		}		
		System.out.println("");
		
		for (int i=0;i<map.length;i++){
			System.out.print(i + ". ");
			for (int j=0;j<map.length;j++){
				if (i==x && j==y){
					map[i][j]="[X]";
				} else {
					map[i][j]="[ ]";
				}
				System.out.print(map[i][j]);
			}
			System.out.println("");
			
		}		
		
		
	}
}
